/* configFlashRecordId -- flash database record id assignments.
*
*               Author: Ted Merrill, emBuild Software Design, Jan. 2005
*               Copyright (c) 2005 by Atheros Communications, Inc.
*
*  Description:
*       This assigns subranges of the record id number space,
*       and in some cases specific record ids, for various purpoes.
*
*  CAUTION: Changes here can easily obsolete all existing implementations!
*
*  PLEASE KEEP THESE IN NUMERICAL ORDER!
*
*  CAUTION: Changes here can easily obsolete all existing implementations!
*/

/* Maximum application record data size.
 * No application may try to store more data in a record than this!
 * This number must be considerably smaller than the block size
 * in order to avoid serious fragmentation issues.
 */
#define configFlashRecordMaxNBytes 5000

/* Number of bytes of flash database space
 * to reserve for vital applications.
 * This is in addition to the margin for prevention of fragmentation.
 */
#define configFlashSafeReserveNBytes 4000

/* Valid record ids must be larger than zero and less that
*       configFlashRecordId_NRecords (defined at end of this file).
*       Caution: increasing the number of valid record ids consumes
*       an additional 5 bytes for each additional valid record id.
*
*       Record 0 is is the canonical invalid record id.
*/

/*
 * missing record ids greater than zero are available for use
 */

#define configFlashRecordId_DateTime                    1   // see dateTime.c
#define configFlashRecordId_NetworkSetup                2   // see lwip.c
#define configFlashRecordId_PowerSettings               3   // see power.c
#define configFlashRecordId_SpeedDial                   4   // see uiSpeedDial.c
#define configFlashRecordId_VoipSetup                   5   // see callCtrl.c
#define configFlashRecordId_WlanCalibration             6   // see etna.c
#define configFlashRecordId_GtalkConfig                 7   // for uiGtalk.c
#define configFlashRecordId_AutoAnswer                  8   // see callCtrl
#define configFlashRecordId_Capability                  9   // see zcom_uiModelCapability.c

//
// 10 to 18 is reserved
//

#define configFlashRecordId_WlanProfilePreferredIndex   19

#define configFlashRecordId_WlanProfile0                20
// 20 to 34 reserved for WLan profile
#define configFlashRecordId_WlanProfileMax              34
// 21 to 29 reserved for user's WLan profile
#define configFlashRecordId_Provision_WlanProfile1      30
// 30 to 34 reserved for Provision's WLan profile
#define configFlashRecordId_Provision_WlanProfileMax    configFlashRecordId_WlanProfileMax

//
// 35 to 50 is reserved
//

#define configFlashRecordId_VoipProfile1                51
// 51 to 64 reserved for SIP profile
#define configFlashRecordId_VoipProfileMax              64
// 51 to 59 reserved for user's SIP profile
#define configFlashRecordId_Provision_VoipProfile1      60
// 60 to 64 reserved for Provision's SIP profile
#define configFlashRecordId_Provision_VoipProfileMax    configFlashRecordId_VoipProfileMax

//
// 65 to 79 is reserved
//

#define configFlashRecordId_IPProfile1                  80  // 80...89 for IP profiles
#define configFlashRecordId_IPProfileMax                89  // [zcom don't use them]

#define configFlashRecordId_PhoneBookGroup0             90  // for uiPhoneNumber.c
#define configFlashRecordId_PhoneBookGroupMax           100 // 90...100 uiPhoneNumber.c

#define configFlashRecordId_PhoneBook0                  101 // for uiPhoneName.c
#define configFlashRecordId_PhoneBookMax                300 // 101-300 for uiPhoneName.c

/*
 * Each voice recording uses a record starting at
 * configFlashRecordId_RecordVoice0.
 * It also uses up to CFG_RECORD_VOICE_REC_N records for the data
 * starting at configFlashRecordId_RecordVoiceRecMax.
 */
#define configFlashRecordId_RecordVoice0                301 // up to 32 memos
#define configFlashRecordId_RecordVoiceMax              332 //  for uiRecordVoice.c
#define configFlashRecordId_RecordVoiceRec0             333 // up to 128 data recs
#define configFlashRecordId_RecordVoiceRecMax           360 //  for uiRecordVoice.c

#define configFlashRecordId_ZcomLog0                    361 // up to 20 logs
#define configFlashRecordId_ZcomLogMax                  380 //  for ZComLog.c
#define configFlashRecordId_ZcomLogIndex                381

#define configFlashRecordId_ZCOMProfile0                382 // up tp 10 profiles
#define configFlashRecordId_ZCOMProfileMax              391 //  for zcom_uiProfiles.c
#define configFlashRecordId_ZCOMProfileCurrentIndex     392

#define configFlashRecordId_ZCOMPhoneSetting            393 // for zcom_uiPhoneSetting.c
#define configFlashRecordId_ZCOMCallSetting             394 // for zcom_uiCallSetting.c
#define configFlashRecordId_ZCOMAutoProvisionSetting    395 // for zcom_uiAutoProvisionSetting.c

#define configFlashRecordId_MissedCallEntity            396 // for callHistory
#define configFlashRecordId_DialedCallEntity            397 // for callHistory
#define configFlashRecordId_ReceivedCallEntity          398 // for callHistory
#define configFlashRecordId_CallListEntity              399 // for callHistory

#define configFlashRecordId_AutoConnectionEnabled       400 // for ConnectionService.c

#define configFlashRecordId_Test0                       401
#define configFlashRecordId_TestMax                     410

//for IM, start from 800
//by Mike
#define configFlashRecordId_IM_INBOX0                   800
#define configFlashRecordId_IM_INBOX_MAX                820		//20

#define configFlashRecordId_IM_OUTBOX0                  821
#define configFlashRecordId_IM_OUTBOX_MAX               841		//20

#define configFlashRecordId_IM_DRAFT0                   842
#define configFlashRecordId_IM_DRAFT_MAX                852		//10


#define configFlashRecordId_NRecords                    1024
/*=========================================================================*/
/*========   End    =======================================================*/
/*=========================================================================*/
